<{include file="admin/header.tpl"}>

<div id="contents">


<form name="myform" jstype="vali" action="?ct=yice_indexad&ac=<{$zhixing.go}>" method="POST"  enctype="multipart/form-data">

<table width="100%" class="form">
<tr>
  <td>排序：</td>
  <td><input type='input' name='paixu' class="text s"  <{if empty($list.paixu)}>value='99'<{else}>value='<{$list.paixu}>'<{/if}> /> <span class="text-hint normal">越大越靠前</span></td>
</tr>
<tr>
  <td>许愿灯名称:<font color="red">*</font></td>
  <td><input type='input' name='title' class="text error" errormsg='名称不能为空！' vali='notempty' <{if empty($list.title)}>value=' '<{else}>value='<{$list.title}>'<{/if}> /> <span class="text-hint normal">许愿灯名称不能为空！</span></td>
</tr>

<tr>
  <td>图片地址:<font color="red">*</font></td>
  <td><input type='file' name='img' class="text"  value='' /> <span class="text-hint normal">页面展示的图片：<{$list.img}></span></td>
</tr>
<tr>
  <td>灯祝福词1:<font color="red">*</font></td>
  <td><input type='input' name='dengci1' class="text error"  errormsg='祝福词不能为空！' vali='notempty'  <{if empty($list.dengci1)}>value=' '<{else}>value='<{$list.dengci1}>'<{/if}> /> <span class="text-hint normal">4个字显示在第一行。</span></td>
</tr>
<tr>
  <td>灯祝福词2:<font color="red">*</font></td>
  <td><input type='input' name='dengci2' class="text error"  errormsg='祝福词不能为空！' vali='notempty'  <{if empty($list.dengci2)}>value=' '<{else}>value='<{$list.dengci2}>'<{/if}> /> <span class="text-hint normal">4个字显示在第二行。</span></td>
</tr>

<tr>
  <td>祝福词描述:</td>
  <td><textarea name='desc' class="text"  style="height:50px" /><{$list.desc}></textarea></td>
</tr>
<tr>
  <td>是否显示: </td>
  <td><input type="radio" name="status" value="1" <{if $list.status==1}>checked<{/if}>>显示  <input type="radio" name="status" value="0" <{if $list.status==0}>checked<{/if}>>隐藏</td>
</tr>

<tr>
  <td colspan='2' align='center' height='30' >
  <input type='hidden' name='dosubmit' value='true'  />
  
  <{if $zhixing.id}>
  <input type='hidden' name='id' value='<{$zhixing.id}>'  />  
  <{/if}>
      <button type="submit" >提交</button> &nbsp;&nbsp;&nbsp;
      <button type="reset">重设</button>
  </td>
</tr>

</table>
</form>

<!--开始循环-->
<table width="90%" style="margin:10px 30px">

<tr style="border:1px solid #EEE">
<td style="width:50px">编号</td><td>图片</td><td  style="width:50px">排序</td><td  style="width:50px">显示</td><td>管理</td>
</tr>


<{foreach from=$data_list item='v' key='k'}>
               
<tr  style="border:1px solid #EEE">
	<td style="text-align:center"><{$v.id}></td>
	<td><{$v.title}><br><img src="<{$v.img}>" style="max-width:300px; max-height:80px"><br>祝福词：<{$v.dengci1}> <{$v.dengci2}><br>描述：<{$v.desc}></td><td><{$v.paixu}></td><td><{$v.status}></td><td><a href="?ct=yice_indexad&ac=index&go=1&id=<{$v.id}>">编辑</a></td>
</tr>

<{/foreach}>


</table>


</div>


</body>
</html>
